<script setup lang="ts">
import Camera from '@renderer/components/Camera.vue';
import Setting from '@renderer/components/Setting.vue';
import useCameraStore from './store/useCameraStore';
import useDrag from './composables/useDrag';
const store = useCameraStore();

const { drag } = useDrag();
drag.run();
</script>

<template>
  <Suspense>
    <main class="">
      <Camera v-if="store.status" />
      <Setting v-else />
    </main>
  </Suspense>
</template>
<style scoped lang="scss"></style>
